﻿@model CloudNinja.Metering.Web.Models.ChartModel
           
<script type="text/javascript">
    $(document).ready(function () {
        renderChart(
            "@(Model.TenantId)",
            "@(Model.MeterTypeId)",
            $("#chartContainer@(Model.Id) .chartMessage"),
            "chart@(Model.Id)");
    });
</script>

<div id="chartContainer@(Model.Id)">
    <h3>@Model.Title</h3>
    <p class="chartMessage">loading page...</p>
    <div id="chart@(Model.Id)" style="margin-top: 20px; margin-left: 20px; width: 1000px; height: 300px;"></div>
</div>
